// 标准化属性
import  request  from "@/utils/axios";
import appName from "../appName"
const timeout = 900000;


/* ----------标准化属性 start */

// 获取体检项信息列表
export function getAusAsstntStndrdItemListApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/standardAttributes/getAusAsstntStndrdItemList',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 新增体检项信息
export function addOrUpdateAusAsstntStndrdItemListApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/standardAttributes/addOrUpdateAusAsstntStndrdItemList',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 删除体检项信息
export function delAusAsstntStndrdItemApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/standardAttributes/delAusAsstntStndrdItem?id=${params.id}`,
    method: 'get',
    timeout:timeout
  })
}

// 获取标准化属性信息
export function getStandardAttributesInfoApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/standardAttributes/getStandardAttributesInfo?id=${params.id}`,
    method: 'post',
    timeout:timeout
  })
}


// 保存项目体检库
export function saveStandardAttributesInfoApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/standardAttributes/saveStandardAttributesInfo',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 删除项目体检库子项目
export function delStandardAttributesInfoApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/standardAttributes/delStandardAttributesInfo?id=${params.id}`,
    method: 'get',
    timeout:timeout
  })
}

// 查询通用属性
export function getGeneralPropertiesApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/general/getGeneralProperties',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 获取健康属性信息
export function getAusAsstntHealthPropertyInfoApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/standardAttributes/getAusAsstntHealthPropertyInfo?id=${params.id}`,
    method: 'post',
    timeout:timeout
  })
}


// 保存健康属性信息
export function saveAusAsstntHealthPropertyInfoApi(params) {
  return request({
    url: appName.AUSCONFING + '/aus/standardAttributes/saveAusAsstntHealthPropertyInfo',
    method: 'post',
    data: params,
    timeout:timeout
  })
}

// 删除健康属性信息
export function delAusAsstntHealthPropertyApi(params) {
  return request({
    url: appName.AUSCONFING + `/aus/standardAttributes/delAusAsstntHealthProperty?id=${params.id}`,
    method: 'get',
    timeout:timeout
  })
}
/* end */